Fixed the way texture.py searched for foliage, grass and chests textures.
This is a "quick-and-dirty fix", you may improve it as I'm novice in Python.