PHP setup/locked_files fixes.
Merge pull request #53 from mrunalp/dev/cartridge_refactor

PHP setup/locked_files fixes.