Fixed confine so it would work as expected (cannot be inside set code bl...

When the confine was inside the setcode block, the fact would throw errors on non-darwin OSes.