Fixed readdir to ignore . and .. files