Fix initialisation of object file directory.