Remove get_output_path() and add write_listing_to_textfile()