Python Test If Directory Exists Bash