Check if the PEARL_ROOT path exists, exit otherwise
Compatibility for PS1 and screen