fixed warning for templates folder which might not exist (inside blocks folder)