Fix usage of rsplit.