Fix dirty check for git working directory
speed up to detect dirty or clean
early return if cache exists in ruby version detect function
Fix trivial path
Fix space for prompt