Brought over paths.cpp.in and internal.hpp from spinda branch
internal: cleaned up pkmn::getenv