Index: Portfile
===================================================================
--- Portfile	(revision 102034)
+++ Portfile	(working copy)
@@ -5,7 +5,7 @@
 PortGroup       python 1.0
 PortGroup       github 1.0
 
-github.setup    ansible ansible 0.9
+github.setup    ansible ansible 0.9 v
 categories      sysutils
 supported_archs noarch
 
@@ -25,7 +25,7 @@
 
 platforms       darwin
 
-master_sites    https://github.com/ansible/ansible/downloads
+github.tarball_from downloads
 checksums       rmd160  f0505ccd0094bdb745271a0508eea023f803c976 \
                 sha256  fa673fd143b79db726ce4e9c2c281373bdc82631b22ab791700e7ec5c41b3809
 
@@ -35,9 +35,11 @@
                         port:py${python.version}-yaml
 
 patch {
-    foreach f [exec find ${worksrcpath} -type f] {
-        reinplace "s#/etc/ansible#${prefix}/etc/ansible#g" ${f}
-        reinplace "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f}
+    fs-traverse f ${worksrcpath} {
+        if {[file isfile ${f}]} {
+            reinplace "s#/etc/ansible#${prefix}/etc/ansible#g" ${f}
+            reinplace "s#/usr/share/ansible#${prefix}/share/ansible#g" ${f}
+        }
     }
 }
 
