Fix reference to templates dir to refer to custom php dir