core bug fixes

install_module.php tried to fix a race condition bug where copied files are read before they are written to disk. remove.php was missing some includes that could be required due to extra work done by Post module Remove method.
core 38 false