Made build impervious to temp dir privileges