Fix NPE when parsing config file path without dir

Fixes #484