Updated this script so it also works in a child folder.