Fix LATEST_DIR and REMOTE_DIR formation

LATEST_DIR and REMOTE_DIR in build_wrapper.py are used only
in qt5 builds and qt5 application builds.

Change-Id: I993bbb7236c4134e7ed829d2e69eb50543742c53
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>