Don't export exportDir if it is / (see #62)
Strip trailing slashes in exportDir #62