instead of using getcwd just open .