Handle full paths correctly