Clean up script resolution.