Fixing $(@RD) behaviour when TOP_BUILD_DIR is used.

Adding real_to_build_dir and build_to_real_dir and expressing some dirs
through it.