Added cleanup function, changed apache restart to graceful, change chown...

... directory for compatibility with sftp chroot, changed mv operation to rsync to include hidden files