Determine if current runtime is server or browser