Get path of directory where script resides
#!/bin/bash SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"