Quoted variables in main.sh for safety. Fixed fs.write call in singleChecker.js