Fixed path detection.

Reorganized and made the code a bit nicer in the food module.
Modified magnifier to a new way of seeds getting.