Added symlink detection for script