fix process.cwd call. cwd is a function and not a property