stat works, pwd and cd do not