change save directory depending on the environment

save file locally on localhost and in dropbox on production