remove unneeded folders and update path parameter for build tasks