Replace references to lfsrequire in source comments
Iterate back-to-front for deletion

This fixes a bug where the entry following a removed module would be
skipped while iterating through modtable.