Changed logic to reference relative scripts.