Add corner cases to file open function