Fix recursive include handling by using canonical path (fixes #885).