 dataObj = JSON.parse(data)
 
 #Assume current author by default
-if options.sim_path.indexOf('/') is -1 then  options.sim_path = "#{dataObj.user_name}/#{options.sim_path}"
+if options.sim_path.indexOf('/') is -1 then  options.sim_path = "#{dataObj.user_name}" + "/" + options.sim_path.trim()
 #Add trailing slash if not provided
 if options.watch_dir.charAt(options.watch_dir.length - 1) != "/" then  options.watch_dir = "#{options.watch_dir}/"
 

    })
    .options("w", {
        alias: "watch_dir"
        describe: "Directory to watch"
        default: __dirname
    })
    .options("s", {
        alias: "sim_path"
        describe: "Path to simulation in author/sim_path format."
        demand: true
    })
    .options("i", {
        alias: "ignore"
        describe: "Regex with pattern of files to ignore of simulation"
    })
    .argv


color = (require "ansi-color").set

options = (require 'optimist')
    .usage("Watches for changes on provided directory and uploads to simulate")
    .options("c", {
        alias: "config_file"
        describe: "Path to config file"
