Automatically prepare a webdir for production or development