fmo sorting script small update

corrected file paths and returned debug variable