Handle all ~ chdir instead of just the base