Fix #976. Now prompt tries to use standard git command.