refs #2777 begin adding fix for web / command line media scanning that removes most of the php element