Improved detection of not staged files in prompt