compatibility of env hooks with old workspace files (fix #36)