Added ENV and cli arg options for setting the directory and file name