Use the sync version of fs.unlink.
This line was truly missing.