Fixed check for mediaWiki existance and removed additional unneeded wrapping in media...