added precommand to allow for setting home directory