Added locking check so that we don't try to commit partially backed up files
Added locking

This prevents dueling backups when you run on a more frequent schedule
New random number generation, locking, killed gremlin, stopped infinate loop

There are multiple changes here:
1. I changed the number generation to work more genericall and not just
on Ubuntu systems
2. Added locking so we don't have dueling backups
3. There was a gremlin in the command to create the backup that broke
the script for nexus switches
4. It was possible to get stuck in an infinate loop when checking the
backup status, I added a loop counter to let us break out of the loop
after x tries
5. Changed from active to CreateAndGo so that we don't need to send
multiple commands to start the backup in the script.