extra checks for unreliable fs.watchFile()


Could not pull the request directly as the code didn't lint properly. Added make lint to the test command. Closes #13