Allow skip tests using env vars
Write log lock file only with debug enabled