replace custom mime util with node-mime lib