Fixing paths and vars for serving static media.