The one liner is neat, however it's two limitations are:
  * It only caters for the one case, and doesn't extend the behaviour to the other two 'w'/'W' cases.
  * Even worse, it converts the full path to upper case, which is really not desired.