The ex-Celtic and Hibernian boss has put pen to paper on a contract with the Fifers.