Buggy stuff fix (see the description...)

Bug fix: It does not open or create a new file if the app is started by
opening .chi files from file browser.