bug fixes

Signed-off-by: Mattias Andrée <maandree@operamail.com>
update dist.sh

Signed-off-by: Mattias Andrée <maandree@operamail.com>
bug fix

Signed-off-by: Mattias Andrée <maandree@operamail.com>