Added folder option to specify the script folder.