Fix script_loader to use respond_to? for method checking