Fix modules include path to be relative project directory.

This change allow to include cocos project directory from another CMakeFiles.txt (with add_subdirectory). And will allow anyone to connect cocos as submodule to their project easily.

I can't easily fix config agains current 'v3' in #8902 , sorry. And just created this pull request instead.
Old #8902 can be closed now.