Fixed bug with tasks JSON storage

JSON file was being saved in the C:// directory. Also fixed bug where
the first task added wasn't properly saved if the tasks.txt didn't
already exist.