Add function getPathFromDialog() to util namespace

- Use this function in BatchDialog::showFileDialog()