termux-api: Cleanup and improve consistency