Fix bug of the FileConnection API implementation

The IBM implementation cut the "/" character out of the string in validateSpec, but then assumed it was here in other functions (parseDirectory).