Removes empty [ ] when not in a git repo