Updated images submodule, it wasn't installing everything
Cleaned up get_appdata_path(), made get_images_dir() check more robust
Database environment+CMake variables use path instead of directory, get_database_path() check is more robust