Fixes execution folder lookup and adds integration test.