Original script does not handle multiple encrypted volumes properly

The original script was a very helpful start for me but in my case I have multiple volumes.  Some are FileVault 2 encrypted and others aren't.  So assuming that the pipe character indicates the currently running volumes volume was not right nor in the cases when I had more than 2 encrypted volumes was it limited to returning one volume.  My script is based off of yours but handles the discover of what core storage volume, if any, is really associated with the current running volume.

You may not want to accept this pull request and just incorporate the ideas but this seemed the easiest way to share.