"TypeError: Arguments to path.join must be strings" with node v10.3 on uploading avatar

With node v10.3, uploading avatar will throw an uncatched exception "TypeError: Arguments to path.join must be strings" that will eventually stop the server.

Assuming "fullpath" is an absolute path, setting the root to / will fix the error.