Prevent double initialization of Jamfile in some cases.
Fixes #4570. Thanks to Brian Freyburger for the patch.