fixed behaviour when coping links
clean source before building dist archive
fixed link