But I DID test it on Both Linux and Windows before submiting, and it worked.
And as at least one of the other solutions was more platform dependant (`pwd` don't work on windows),
I've thought it could be an acceptable answer.
I should have emphasized more about the portability issue, but I was mainly kidding davorg ;-)