NetBSD does not have get_current_dir_name() function unlike Linux and
FreeBSD