Stricter fs check

Simply checking for fs is troublesome when using browserify to bundle modules b/c browserify provides a stub object by default. This can be worked around, but it seems like a nice solution to add an extra check here.