Exposed __basepath globally
Fixed download paths