The First Minister told MSPs he was "actively pursuing an option to maintain the refining capacity at Grangemouth".