Fix error when outside of a git repo + troubleshooting advice

'echo_green' and 'echo_red' also need to be moved to above 'exit_with_error'.

Also added some troubleshooting advice to the README.