Adapting script to new project package distribution