Fixed defines.h path in posix scripts