Create output directory if it doesn't exist, make script executable.