Resolve absolute paths correctly