Better remote host testing plus fixed standalone ENV handling