Implemented reliable code to get the Maven Home