Replaced os.IsExist() with a different check. (damn misnomer)