Made directories more dynamic

Signed-off-by: tiendam <tien.dam@socketlabs.com>