fix nonrelative paths

A few nonrelative paths were making this fail behind an nginx reverse proxy.
Merge pull request #27 from paulczar/behind_nginx

fix nonrelative paths