dynamically scanning templates directory to find requested template