Improved logic for creating mapr repository specifications ... better
handling of pre-existing files.