GetDirectory : Avoid Unnecessary parsing