Fixed path detect in older php versions. Updated submodules