run `;cmd` through a shell
`;cd ~/dir` – shell expand `~/dir` for consistency.
`;cmd` – don't shell out on Windows where there are no real shells.
Merge pull request #4635 from JuliaLang/sk/shell

run `;cmd` through a shell