Add piping, redirection in 'defaults.sh'

Now you can pipe output of the script to a command or redirect it to
a file.