instead of wget here and for the fetch above can you use the get_url module?