Remove duplication of working directory instance variable in DefaultPlatform and TestPlatform