Yes it does. On the contrary, this snippet returns the file in a specified directory. That covers if the directory is true. As said in the intro, this is a more advanced version of $findfile.
When you are setting the password, wouldn\'t the new password be considered pass etc? The %cspass would also return null. So you should combine the two together: set %cspass $$?=\"Pass used with CS?\"