Script now copies file into public directory