i know it's a bit late now but the reason you were getting that is that terminal was still in the ~ directory