Jon Robertson has returned to Cowdenbeath after St Mirren called time on the midfielder's stay in Paisley.