Added ifMissing functionality to curl-dir