Added check for wget dependency