only apply realpath if config file was set

see also #1375