Fix temp compile script to work out path