fix for detached head on build server