Fix backup script to make actually backups.

Move creation of backup dir to puppet.
Extend tests.
Fix style.