Assign realpath to @path in constructor
Fix specs when using realpathSync for files