Added directory backup action, fixed sha hashing

The directory backup is still untested.
SHA hashing now correctly uses the contnets of the file, nto the file
name.