Trim trailing directory seperator characters of line items

This fix removes the error on *nix systems if the line items in the modman file have a trailing directory separater.