@ruzgarmax a possible more convenient and permanent workaround would be to change the VTE preferences to have "Execute programs in the VTE" ticked as well as "Don't use run script".
I don't think it will work - the problem isn't about running but compiling where we use the hard-coded /bin/sh.
It might be nice in the future to make the Shell configurable in the Tools tab and have it inherited by the arguments used for the "Terminal" command arguments in that tab, the "Shell" command in the VTE preferences, and anywhere else that uses a shell too.
That's even nicer place to put the configuration than the Various tab. I'll do it this way.