[UPDATE] moved to using graceful-fs npm module.