Ported the PACKAGE script from subversion to git