Fixed file vs directory test in bashrc