Issue340 - MyModule shouldn't be indexed

This resolves #340.
You might want to try something like this `return $self->path =~ m{(?:\A|/)t(?:\z|/)} ? 1 : 0`  Using curly braces for the delimiters means you don't have to escape the slashes.  Also, using `?:` makes the parentheses non-capturing.  We don't need to know what matched or didn't match, so that's a small optimization.  It also makes clear that we don't care to check those values.

Having said all of that, a regex can be hard to read and it's hard to be sure we didn't miss some condition.  The easiest way is probably to split the path and check the list that is returned:

```perl
use List::MoreUtils qw( any );

my @parts = split m{/}, $self->path;
return any { $_ eq 't' } @parts;
```

If you were worried about portability across operating systems, you could even do this:

```perl
use List::MoreUtils qw( any );
use Path::Class qw( file );

my @parts = file( $self->path )->components;
return any { $_ eq 't' } @parts;
```