fix default case
call srand at the start
use random cache directory name, fixes #38
Merge branch 'master' of github.com:skoobe/riofs