recreate hidden files fix

isn't `ps` a list? Shouldn't it be `p.startsWith...`?