Packed path gems break deployment mode

First failing spec for #2175 issue as discussed.

I am not sure that this spec in a correct file of the specs tree. I'll gladly move it to proper place, just tell me where it belong.

Update: another one added.