Modify profile()

If there is data comming from stdin, profile() will use it
otherwise it will call dmidecode command to get output.