Make template paths relative to the module

Fix #7