Move edd_set_upload_dir() to misc functions