only attempt to remove source from path when it exists