Updating script to v2.5

Using a less restrictive filter for -d target directory