Set default working directories and ports.