[media] Made media path construction case insensitive