using the right syntax for exec dir