Move perl templates path defination to the end of file