Prevent error when piping bower output to head, fixes #1396

Please review and merge