Changed location of output files to be /etc/mkmpdev.
Added code to make backup of files before overwriting them.