Thanks for the suggestion, unfortunately $HOME is set up in tsh and bash and restarting TM didn't help.