Add whitespace test for the staging directory, it may not contain a
space or tab character so that we can perform tilde expansion on the
remote staging directory.
Improve whitespace validation handling.
Add deployment type with validation that the specified type is a
recognised deployment type, available values are git and tar.