Fixed EZP-20787: Improve update script fiximagesoutsidevardir.php

If the var folder was renamed after the setting was changed, the database
contains references to imates in the old path.

The update script is now able to detect this, and will update the database
references without trying to move the files.

- changed require to require_once
- CS & cleanup