Replaced string concatenation with formatted strings.
Removed duplicate code.
Don't assume the --port parameter for hddtemp in daemon mode.