Don't leave empty paths with a trailing slash
Add spec for resolving compatible module paths
:lipstick: