Added support to grab media directory