Fix bugs in creating include directories