Sorry FOR THE delay Prasad,
The solution of the issue is i think your running scripts through Eclipse IDE and here the solution you need to select android Home in the eclipse IDE .
To elaborate the solution (Set Path in the Eclipse : MAC machine same for Windows)
Launch your eclipse ->Click on Run -> Click on Run configurations
Select the Environment Tab -> Now set Android_Home path in the eclipse .
Thanks,
Rakesh kumar