fixed run.sh for using with symlinks