only apply realpath if config file was set

see also #1375
Merge pull request #1376 from gimler/patch-4

only apply realpath if config file was set