Update main.lua

Fixed a bug where if an app's settings files doesn't exist, the home screen crashes