Remove last part of .idea directory.