Properly handle bootstrap script in seed and lxc modules.

This is related to be605bc81a43879c15f5b026f5d2529a9b008c7e and #14865.