add share dirs to maindir