Normalize paths correctly based on platform.