Fix ensure_paths empty string check.