Fix the output type of `staticlib`

The file-naming bits weren't handling the staticlib case
auto merge of #319 : alexcrichton/cargo/fix-staticlibs, r=wycats

The file-naming bits weren't handling the staticlib case