Yet another weirdness - star not writing file to correct place. Fixing with
a mv system call, which isn't ideal.