Fix troubles when subfolder.