Set local dir for EC2.