use explicit default (process.cwd()) for command working directory instead of null

formatting