PS1 prompt detection for root fix