Fixing pathspec issue for ToAmosTool