Properly handle recursive directory put.

Fixes previous patch that ignored directory puts, and properly
recursivelly descend into directory tree when deploying sites.