Don't attach stdin and stdout when in detach mode

Signed-off-by: Ben Firshman <ben@firshman.co.uk>