added os detection for download link