Fixes for OpenDirectory with use_valve_fs

Unlike the new additions to the file natives for this, the directory natives were barely tested. I've fixed some issues based on user feedback.