Set required variables if is running from Apple application bundle
Initially this was done from the shell wrapper what is not compatible with a recent (10.15) macOS changes and causing file permission issues.
As a side effect - this also fixing gimp-console
binary
Edited by Alex Samorukov