fixed bug in measureIndex and os.rmdir