Fix "Error: Could not set link on ensure: No such file or directory" error when using PHP 5.4