Sort out some issues related to ARC installation path calculation (BUGZ-3740)
Begin arcbot message
This merge request is automatically copied from !349 (merged) orginally made by @aleksandr.konstantinov
End arcbot message
Removing static calls to ArcLocation as it is not initialized by that time yet.
Handle soft links in path.
Note that it can still contain bugs but need to be tested.