[#2116] setup_runinplace.sh was making setup_database.sh hang

Script was attempting to cd to a filename, instead of a dirname,
which was failing. This left MYIRODSCONFIG var unset. Script later
uses MYIRODSCONFIG as location of input for grep. When grep is
given no input, it defaults to stdin, blocking the script.