don't try to open joystick when num <= 0
fix ArchiveCache.lua writing when modinfo.lua contains strings with \n