Fixed issue with defaulting of the target directory.