fixed bug when creating symlink from data directory to a source file where the source file is a single file.