Fix old getreent file for configure