Fixed use of uninitialized $target_paths to clear cache.
Corrected version of php to 5.4.
Implemented hook_page_build().