Make duplication check earlier to avoid empty directories
Make it possible for localhost to delete builds