Fix build script bug

Determine if current DirectoryIterator item is a symbolic link