fix mistyped $ in curr_dir init