Fixed relative path #61

This is the same as PR #61. I just do it in the template, and I think it is a bit cleaner. Works for both situations, subfolders or root directory.