Change homegrown directory management to use Symfony filesystem component. Replaced unneccessary constant