Update index.js

also handle baseDir in CustomFileLoader
Update index.js

set baseDir to empty string if not set through options
Merge pull request #1 from soenkekluth/master

support baseDir option