Walk up a directory heirarchy to find credentials.