Added .php to non-binary files and fixed directory structure creation