fixed buildPackages tasks