upload: Keep original cmdb file before expand it

As per issue #76, its pretty painful loosing the original cmdb file.
This patch detect if the cmdb is using the generate() call and make a
backup of it padding a .orig file extension.