Make remote_setup more robust

Had issues with running test from configured node. This is usually the case when project is managed by external tool (e.g. maven). As well as test beams being separated from the source ones.

Remote cover compilation has problems in such case as well, but I've worked around it for now.