several fixes to apachex::package