Fix for -I parameter workaround, use chdir () before modifying cpath_real