[Prompt] improved hostname detection
[Sismo] fixed error when cache dir does not exist