Merged requested to merge fred23/cmake:ghs_fix_rtos_dir into master
Fixes build project error because the OS directory was a relative path from the binary directory.
Fixes issue during project regeneration where the
-os_dir project option
was missing because GHS_OS_DIR was not properly stored in the cache
This error was introduced by commit aa59eaac from !6715 (merged).