fixed linking to subdirectories
replaced process.cwd() with basePaths
made symlink dereferencing optional
Merge pull request #45 from gregpabian/dereference

dereference option