Ignore PhpStorm project files
Added missing blackslashes in regular expression
Added missing blackslashes in regular expression
Fixed references to undefined variables
Replaced deprecated split() with explode()
Now properly supports creating directory entries