Bash PS1: refactor code for better readability