Added prompt info for Mercurial and optimized OS error description reporting