Changing architecture based on dir and runnable files
fixed version