Fixed a issue that cqerl app can't start

The third param in lists:foldl needs to be a list http://www.erlang.org/doc/man/lists.html#foldl-3 , but application:get_env returns {ok, Val}