Fixed a bug generating a robot path

To a backside item when a scale is on the back.

Also fixed the description of a scale.
Fixed a bug in UTILITIES.relative_position

It now works if refererence_element is undefined. Also simplified the
code.