fixed: Path substitution didn't work for files (only library items)
Merge pull request #3560 from arnova/path_subst_getdir_fix

fixed: Path substitution didn't work for files (only library items)