Fixes to dev and pinned package handling