Modified script to explicitly ignore any files contained in a directory
named legacy that exists in the root where the script is run.