fix working directory setting