Added a replace function.
Now it's possibile to use special pattern in the command to handle datetime and event directory.