pub fn detect_scripts_dir() -> String
Detect the scripts directory by checking current dir and parent dir.