Revert "Fix initialisation of object file directory."

This reverts commit 17061c6931876f99dcd6708f0933d334bd92b854.