Replaced most uses of get_modpath() with variables cached at the top of init.lua