Don't use the unknown which command, instead try pwd as /bin/pwd and