Fixes broken php lib dir code

Re-fixes https://github.com/puphpet/puphpet/issues/1094
Re-fixes https://github.com/puphpet/puphpet/issues/1203