make sure that final install directory exists before trying to remove it