Switch to JFileChooser for path input and path checking by os