Refactor some shell commands
Fix publisher for bdist jobs