Clean up path indices for loadModule

This closes #44
Merge pull request #44 from 404d/issue/44.indice-cleanup

Make use of negative indices in loadModule