Added support to pass native machine architecture to pkg scripts (6th arg).