Partially revert last staticpages migrations hack

Now it should be possible to deploy from scratch and upgrade an existing
installation without any problem.