Resolve path based on __dirname