test for availability of command
Merge pull request #432 from humanmade/shell-exec-test-432

Only use shell_exec if it's available