Added checks for curl/rsync and for port to be in the correct location.