Script to generate GH pages fixed