Rewrite Path.resolve
Linking issues and a debug message