Absolute path fix for WC_API class