Don't add a nix-build build product unless $out is a directory

Created by  Eelco Dolstra  on May 28, 2013
HZDVCFCBBL3XJRJTGCW2ONNAXW3Y7UK3YY4FTFEAUTR53V3W7Z6AC
Change contents