fix case issue in resolve path function