Add logic to create backup within the sandbox if the deploy target
directory exists.
Test backup and rollback logic for a failed deployment.

Tested by specifying a npm package version that does not exist in the
registry to force deployment failure.