tools: improve replaceOnFile to use file descriptor instead of calling multiple fs.* fns - Closes #251
tools: improve replaceOnFile to use file descriptor instead of calling multiple fs.* fns - Closes #251

JCMais/node-libcurl,JCMais/node-libcurl,JCMais/node-libcurl,JCMais/node-libcurl,JCMais/node-libcurl,JCMais/node-libcurl,JCMais/node-libcurl