More efficient way of loading directories (doesn't require extra fs call)