Disable save button is save-as dialog when input is empty or a dir