Fixed Url::getdirectory