fix compile error while src file path is absolute