Fixed: XCodeCapp reads the user's shell environment

Before this fix, XCodeCapp always ran under /bin/bash, causing problems when trying to source the files from other shells, like /bin/zsh

This fix reads the shell information directly from the user's environment and XCC to run using that shell.
Minor formatting changes
small style fix