temporary workaround for trailing slashes in path.join