chdir at every emperor glob interaction