Fix how media renders in dir listing