In portable application the default database location was not properly detected.
Addresses issue #317 (closed) .