fixes #282, accept './' at front of template amd path