Fix formula directory listing and other configuration issues with templates