Better detection of script_dir.
Better detection of script_dir.

starcraftman/.my_scripts,starcraftman/.my_scripts,starcraftman/.my_scripts,starcraftman/.my_scripts,starcraftman/.my_scripts,starcraftman/.my_scripts,starcraftman/.my_scripts