Cargo deprecation warning and minor test.sh fix

Minor fixes:
- `Cargo.toml` [[lib]] section has been deprecated in favor of [lib];
- `cargo build` builds binary `peg` to target folder, so I think `test.sh` should reflect that (would also maybe be nice to support `cargo test` instead).