Avoid hardcoded file system paths in migrations

Created by: wasabideveloper

Replace path string concatenation with os join path within a function for upload_to, so they may differ between deployments.