Both codes will act as one and the same, only the lib folder will have preference regarding the boot order.
Files in the lib directory are loaded first before they are in the both directory. This can be useful for helpers and constants and things that you need to be prepared before anything else loads.
source share