updates commands to use dynamic path