Support cwd paths in resolve