Fix canceling file location dialog

Fixes issue #6