Maybe rpm and yum are working correctly but post install scripts are causing these files to get created as files.
Maybe rpm and yum are working correctly but post install scripts are causing these files to get created as files.