support path arg on loader scripts.