fella , just try using this command
cd /data/data/com.termux/files/home
this was the problem in my app too I used pwd which gave me just / as output
/
but it should return
/data/data/com.termux/files/home