better dir name extraction