Inform when things go wrong

Signed-off-by: David Greaves <david@dgreaves.com>
Validate inputs against regexp
Handle %setup more reliably

Signed-off-by: David Greaves <david@dgreaves.com>