Update standard.php

Fix for #248 dir() returns a Directory, not a string