Change the script to follow symlink. If using -d don't cd to anywhere.