safer deploy script

Signed-off-by: Ben Jackman <ben@jackman.biz>