fixing directories for upload