Added some error handling.

Added error handling when a directory could not be read by node.js,
these directories tend to be crucial to the Operating System and
therefore should not be included anyway.