Fix #1712: Avatar open_basedir problem with /tmp