Implements -u flag which output the source. Also fix a bug when using default sources.