Now uses /bin/sort and sets LOCALE explicitly to POSIX to match CompleteSearch sort LOCALE
Removed delete_intermediary test when removing pre-existing index link as this is not intermediary data and was causing failures