Fix parse_git_dirty() when status.branch is set.
Replace /usr/bin/env with env

Some environments (such as Android) does not have /usr/bin.
Update Solaris changes to use OSTYPE and zsh datetime  module.