add bucket configuration
fix missing part of path if local path included prefix