[BUGFIX] Translate paths before checking them