app: actually resolve the interpreter through extension as last resort.
Current code of gimp_interpreter_db_resolve() was only resolving the interpreter by the file extension when the file could not be opened for reading or if it was empty/coult not be read. This basically made this test completely useless. Let's fix this. Now it will be run all the time, but simply at the end, if shebang and magic failed.
Showing with 23 additions and 15 deletions