fix symlink file check (fixed #5)