Add sanity checks for user supplied commands, like no spaces, no relative paths etc

Signed-off-by: Jari Aalto <jari.aalto@cante.net>