made extension directory location independent