Check if the bashrc file exists, otherwise skip

On OSX the default bashrc file is under /etc/bashrc thus the test suite fails
with the 'parses /etc/bash.bashrc' case.
The changes check if the file exists, uses the osx path or skips the case in question.