Fix crash when subdirs present in source