add file exists condiditions, fix hardcoded path in site.conf