Fixing usage of `opts.paths` variable