Pass directory to script as $1