normalize directories