Compatibility fix for PS1 variable: \w causes crash on certain types of mounted volumes