[TEMPORARY] GetDirectory : Avoid Unnecessary parsing

This still needs to be discussed with tobias