Set default options and remove temp dir