removing res/ directory before switching to cmd params