Set correct working directories