When 'osc rebuild --all' was executed from a package working copy, the package name was automatically read and used instead of passing None to the underlying rebuild() function.