change in the way we decide to use PROMPT_DITRIM or not

we now check for an existing PROMPT_DIRTRIM variable to enable the use
of _lp_get_dirtrim

the check for the bash minimal version (4) has been suppressed as it was
redundant with the one for the PROMPT_DIRTRIM variable