Added portable read_dir
Fix