fixed possible crash if commit dialog was not started in a working directory