Uses request.path when available, otherwise fallbacks to ./
Merge pull request #4 from caioariede/fix_base_url

Use request.path instead of ./ when possible