fix filename checking syntax to comply with the RPM naming