Fixed an avatar upload error

Fixed an error where avatar files could not be uploaded to the site
because it couldnt find the folder