improve logic to support different environments
use an alternate prompt if git-prompt is missing