added process.chdir to execSync in command.exec