Fix almond path when '.js' appears more than once in path

Hi, I've changed the expression inside the _almondify_ module to build the path correctly. I ran into this issue when I've used a path like this: ```'projects/fancy-projectname.js/node_modules/grunt-requirejs/...'```. The ```.js``` will appears more than once inside the path which ends up in not building correctly the complete file path for the ```alomond.js``` module.