fixed a problem with invalid script folder names