Fix ARM detection in build script
Preserve current user's environment when running Docker with sudo

Makes sure the unprivileged user's login credentials for the registry will be used