Fixed bug with the requirements
Added control condition to setup_repo for fabric