fixed default working directory handling

fix 155