adding basePath to settings, fixes #23

It'd be nice if this could get published as a new version as well. Thanks!