Fixed loading of template and excluding of some files from porject