Changed retrieval of bower or node package version.