Check which dir the script commands run from.