Replaced zenity with psdialog and minor fixes