Change directory settings