a couple of small bugfixes for %post and %pack hnadling