Stat the file to execute to report errors early
Stat the file to execute to report errors early

Also check if it's executable. The check for executable succeeds if
any of user, group or other has the x flag set.

Note that this change means that the executable must be passed with the
full path.

fiorix/go-daemon