fixed editing of service metadata if contained in subdirectories