Detect autochdir