Moved root to vhost_header. One of common pitfalls is to define root inside location block: http://wiki.nginx.org/Pitfalls#Root_inside_Location_Block
Explicitly set APT as provider. Perhaps dependency on apt module should be added to Modulefile.