Merge pull request #4898 from pks-t/pks/config-parent-is-file config: fix adding files if their parent directory is a file