Add support for specifying root path for generated file.