Fixed small bug with non-existant file

If persistant.json doesn't exist, the program hangs. This fixes that problem
by auto-creating the file.