Make sure that template file being passed in is actually a file