Gracefully handle symlinks