fix issue #2 for subdirectories which are symlinks