get_pwd_cwd(): Do not trust st_dev/st_ino blindly