Make build directory name include not only version, but branch (if different from master), 'mod' if it has uncommitted changes and a set of arbitrary suffixes.