I'm not sure if locateResource returns also SensioGeneratorBundle dir.