Add $SCRIPT_DIR to avoid executing the script from its containing folder
Merge pull request #10 from JohanLorenzo/absolute-path

Add $SCRIPT_DIR to avoid executing the script from its containing folder
more credit
Merge pull request #11 from nhirata/credit

more credit