Adds a filter that we ignore directories when we create the hash of our migrations.