Fix deployment platform check