CLOUDSTACK-5959: Fixed cascading failures in portable IP test cases
CLOUDSTACK-5978: Changes in get_template function to make it
 independent of ostype passed through test case