SPG_HOME and support for executing the script from any location added