Fix user folder for rescan command

* make user folder injectable