Currently preview index file is relative to cwd which does not allow putting the crawler as a dev dependency in another project and running from its root.
This makes the path use dirname instead of ./ to make it relative to index file as opposed to current working dir.
dirname
instead of./
to make it relative to index file as opposed to current working dir.