Fixed buildOptions did not pass into makePackage function

Fixed buildOptions did not pass into makePackage function.