Installation fails when target path points to a file. Ensure to fail
when target path points to a file in both GUI and console installation.