Support no-base-dir option, dynamic publish cmd for PublishTask