Fixed require to support unix file directories