app: fix "Bad interpreter" error messaging.
If I override the `program` variable, and it is not found in PATH environment, then it is NULL and the error message is unhelpful. Make the return value of g_find_program_in_path() into a separate variable instead, and only override `program` in the end, when we know it is non-NULL. (cherry picked from commit 87a9feb6)
Showing with 7 additions and 4 deletions