Code

OS utils: Use readdir() instead of the now deprecated readdir_r().