path resolve improvements