allow full paths to determine script filename
Fixes wrong script filename if the script is started with an absolute path.
This script uses the $0
variable to determine the script filename. This variable does not contain the script name per se, but the zero argument of the script which can hold additional path information e.g. ../path/script_filename.rb