Updated install test to remove directories when checking for files