Use `longest` instead of `max`

This fixes issues with npm due to a stupid deeply nested dependency.
Merge pull request #7 from kevva/longest

Use `longest` instead of `max`