better fix a less compilation regression bug on non-root (subfolder) sites