Corrected $file related code when using with owner 

When using no file but an owner argument it was looking in the wrong home folder.