init: try to get better error handling when the upload fails

We've been through some situations where the /configure
file didn't exit. It was quite hard to figure out
the error since the redirection to /dev/null hid
the chmod error.