St Johnstone have completed the signing of Bosnia defender Sanel Jahic on a short-term deal until the New Year.