autoconfig.php only to be deleted on successful installation

successor of https://github.com/owncloud/core/pull/12279

@MorrisJobke @LukasReschke @jnfrmarks