onlyif => creates; onlyif fails directory check if parent directory does not exist. Fixes #831