title: Checking if PWD contains directory name
body: <p>I want to find out if the PWD contains a certain directory name in it, it should be able to test it being anywhere in the output.</p>
  
  <p>For example I have structure paths like <code>public/bower_components/name/</code> and also have paths which are just <code>public</code>.</p>
  
  <p>I want to test because the contents of the folder <code>name</code> move into the public folder and the <code>bower_components</code> folder is removed.</p>
  
  <p>Thanks</p>