Get current directory with `Dir.getwd`.

Fixes #root_path approach of getting the current directory name.