Used capistrano's built-in linked_dirs instead of creating symlinks to shared directories manually.
Moved tasks to their own files.