added an exit in case the sorting script can't be found.