Default to script directory if --to argument not provided