Use correct baseUrl when using a proxy consisting of subdirectories

Fixes #250.