Checkout oem repo if it is not there.

Also make the checkoutPackage function handle extra osc params.