modified status check based on enabled_services in task.sh,made sanity.s...

modified status check based on enabled_services in task.sh and made sanity.sh as standalone