support override initial path of file dialog

Fix #516