fixed serving static files with static_version

thanks to Andriy for checking.