We can make the deployment more efficient if we use the realpath
filter, instead of first checking for the directory and then
implementing the changes in a follow-up task.
This is more readable, simpler and faster to execute.
Change-Id: Iaa6c1873330370ae62cd29e7d4c211c7211b703d