Add support for directories

Should fix #47

I discussed this a bit here (https://github.com/yeoman/bower-requirejs/issues/52#issuecomment-30065836). If there is a directory in `main` we'll create a path for it, just like any other js file in `main`. When `moduleType` lands we can look at expanding this to better cover CommonJS packages.