Directory chooser to select a target directory or an existing repository