write job command, rebame basePath to cwd