Re-add support for IDX_FILE and IDX_FORMAT environment variables. Close #12