removes any reference to old release/ directory, rebuilds files