Handle environment variables in development using .env

I was getting errors when running tests for some reason related to an incorrect path to pdftk.

The .env approach is preferred as it makes it clear which variables need to be set in production.