Set --platform for wrapper command only if it's not empty.