Some systems dont have readdir