Fixed issues with ordering of tasks.
Pushing master, gh-pages and tags back to the repo.
Using a more stronger shell command chaining.