Fixed #1

fixed hard coded template path to relation path using Pathname.