A giant ghost army of civil servants may sound like a Twilight Zone plot but it's far from the stuff of fiction in 21st century Scotland.