We should make sure not to have path-seperators in basenames/prefixes