Simplified the logic of checking for JSONMakefile, and creating one if it does not exist