move escapeshellarg to exec, correct typo