Compiler: add 'ps1_is_static' function
The PS1 fallback can now be dynamic if the shell plugin has no static

If the shell plugin does not support a pure static prompt for the
PS1 fallback, the fallback will be dynamic.
This is the case for mksh and that port was broken since we have
introduced PS1 fallback.