Moved GAMS execution to utils

Improved error handling and set default gams_exec to be the command "gams".