InstallDirectoryDialog.java: Test installation dir

* Show error if installing into directory which is write-protected
 * Deny installing into write-protected directory

Signed-off-by: Janne Kujanpää <jikuja@iki.fi>