How can I get Unix (brew/xcode/vim) acting like Unix under Lion?
You may already know this, but downloading/installing Xcode from the app store doesn't actually install it. It just leaves an installer in your Applications folder, which you have to run to actually install Xcode.

Don't know if this is contributing to your problem, but it tripped me up.