Auto-detect file_get_contents or curl availability