Changed example script so it can be included

Variables $filename, $own and $dir have to be set before including
script