fixed detached head and moved setup.sh