build: Convert predefined $PLATFORM to lower case