Rewrite setup script

I've written a bit more flexible thor script to run the project setup