Fix #1132 -- don’t CWD to dir-with-conf.py if not needed

Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
Merge pull request #1133 from getnikola/get_root_dir-fix

Fix #1132 -- don’t CWD to dir-with-conf.py if not needed