St Johnstone striker Steven MacLean is delighted to be back among the goals after fearing his career could be over.