Fixes conditional for checking symlink