Fix Node 0.11 error when path is frozen.

Proposed fix to #12