dry out code get_basedir replacing repeated string concat
typo
typo
make pre-running.sh executable