Get the script direct wherever you are in the filesystem

SCRIPT_DIR="$( cd "$(dirname "$0")/" >/dev/null 2>&1 ; pwd -P )"