repositories: Avoiding implicit parameters

Having implicit parameters is always a little bit dangerous. Let's make
the $dir explicit instead of implicit.

To be merged simultaneously with fix_options on edeploy-roles