Add defined clause to exec, and use unless instead of not-if
Merge pull request #30 from andrewh/exec-unless

Add defined clause to exec, and use unless instead of not-if