I had a similar issue.
And basically I couldn't execute any command. For instance:
$ composer
-bash: composer: command not found
neither use ls, cat, vi, vim, etc etc.
So seems bash_profile was empty and NO PATH was set.
So I executed:
$ PATH=/usr/local/bin:/usr/bin:bin
in the terminal so that...