Support flexible base path
Merge pull request #15 from mahemoff/master

Support flexible base path