Fixed exec, refs #38.
Merge pull request #353 from fantix/fix_exec

Fixed exec, refs #38.