Define template directory and call get_template_directory only once

This is small change I defined template directory constant and that way there is no need to call get_template_directory more than once.