fix absolute path checking to support node v0.10