Checks for uncommitted files before committing