work in the proper directories when processing scrolls

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

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

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