next unless ( grep { $_ eq $location; } split( '/', $file ) );