Add lowlevel check for existence of writable extensions directory

also fixes a path error in composer where the tests were looking in the old location for extensions