IDE-1299

    note:
    1. Removed automatically changes user typed and replaced
       with showing an error messages when user typed is wrong
    2. add another check for . and .. invalid path
IDE-1299 Source formatting