Fixes issues with basePath, when aplication is run from within a subdirectory.
Merge branch 'hotfix/0.7.1'