fixed dropbox upload / removed some notices about undefined variables

Change-Id: Ic86145ce40c0d0212685ed75c8e679fe06a3a2f0