get dir name from argv