[TIMOB-15507] Fixed output if --sdk is set to an old sdk. Also fixed support for install sdks that uses a ~ in the path name.