Add RM variable.
Export variable which can be used by tools/*
Create $WS_DISTFILES if not exist.
Fix typo.
Fix sum verification.
Enable download.