fixing script to work inside of require-ed composer structure