Be careful to avoid modifying the namespace directory variables when formatting arguments to 'exec'.