add --attachment-basedir option