fix a bug change exec to execSync