PDI-5202: Prevent prompting the user twice in case the dir exists alread...

...y in the UI. checkstyle fixes.