Fixes issue writing the path to cd into to a /tmp file
Fixes issue writing the path to cd into to a /tmp file

By using fs.writeFile instead of opening, writing to, and closing
the file manually, node takes care of permissions and access to write
to the file for us.

deefour/speed-dial